﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>登录-微街秀</title>
<meta name='keywords' content='微推广,网络推广,微信推广,移动推广,移动搜索推广,上海企动,企动信息,网络营销,网站推广,企业网站推广,搜索引擎推广' />
<meta name='description' content='登录后,可以很方便的将产品信息推广至微信公众平台,从而提升排名效果' />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />	
<meta name="copyright" content="商汇通 版权所有" />
<link href="http://www.711688.com.cn/Template/Default/css/Master.css" rel="stylesheet" type="text/css" />
<script src="js/jquery-1.7.1.js" type="text/javascript"></script>
<script src="/client/js/dialog.js" type="text/javascript"></script>
<script src="/client/js/base.js" type="text/javascript"></script>

<style>
	 body{ font-family: "Microsoft YaHei" ,微软雅黑, "Microsoft JhengHei" ,华文细黑,STHeiti,MingLiu; font-size:14px;}
	 img{border:0px;}
  	 ul{margin: 0px;padding: 0px;}
	 .clear{clear:both;}
	.headdiv{height: 50px;padding-top: 25px; text-align:right;}
	.dl_div{ font: normal 15px/32px "微软雅黑" ,tahoma;}
	.dl_title{ line-height:35px;}
	.dl_body1{margin-left:auto; margin-right:auto; height:517px; background:url(/passport/img/login_bg.jpg) no-repeat;max-width:1621px; background-position: center 0px}
	.con{width:1000px; height:400px; margin-left:auto; margin-right:auto;position:relative;}
	.con2{width:80px; height:170px; position:absolute; left:1100px; top:200px;}
	.con2 img{ margin-top:5px; display:block;}
	.box{ width:293px;height:300px; background-color:#FFF; position:absolute; left:700px;top:65px;}
	.box .row{ height:42px; border:solid 1px #cbcbcb; border-bottom:0px; margin:0 10px 0 10px;}
	.box .row .pic{height: 26px; width: 59px; text-align: center; float:left; margin-top:8px;}
	.box .input{height: 40px; width:208px; border: 0px; float: left; font-size: 15px; line-height: 40px;font-weight: bold}
	.submit{height: 48px; width: 273px;font-weight: bold; color: White;background-color: #f4a702; border: 0px; cursor: pointer;font: normal 20px '微软雅黑',tahoma; margin-left:10px;}
	.footer.login{ width:1000px; height:100px; background-color:#FFF;}
	.footer ul{ margin-top:20px; height:60px; }
	.footer ul li{ float:right; width:120px;margin-left:50px;}
	.copyright{text-align:right; color:#8f8f8f}
	.sl-error-display {padding: 3px 0px 3px 5px;line-height:26px;background:#FDEEE9;border: 1px solid #FADCD3;clear:both;height:25px; margin-top:8px;}
</style>  

</head>
<body>
    <div class="head">
        <div style="float: left; width:252px; margin-top:22px;">
            <a href="http://www.711688.com.cn/" title="企动微推广">
                <img src="img/logo.jpg" alt="企动微推广" /></a>
        </div>
        <div class="headdiv">
        	<img src="http://www.711688.com.cn/Template/Default/Images/member/2.jpg" />
        </div>
    </div>
    
<input type="hidden" id="hd" value="6" />     
    <div style="background:#fc8c23;">
        <div class="dl_body1">
        	<div style="width:1200px; margin-left:auto; margin-right:auto; position:relative;">
        	
            <div class="con">
             <form id="frm" onsubmit="return false;">
                <div class="box">
                    <div class="row" style="margin-top:40px;">
                        <div class="pic"><img src="http://www.711688.com.cn/Template/Default/Images/member/3.png"></div>
                        <div style="width: 168px; height: 40px; float:left;">
                            <input type="text" name="name" id="UserName" class="input">
                        </div>
                    </div>
                    
                   <div class="row" style="border-bottom: solid 1px #cbcbcb;">
                        <div class="pic">
                            <img src="http://www.711688.com.cn/Template/Default/Images/member/4.png"></div>
                        <div style="width: 168px; height: 40px; float: left;">
                            <input type="password" name="Password" id="Password" class="input">
                        </div>
                    </div>
                    
                    <div class="row" style="border:0px; padding-top:5px; height:60px;">
                    	<div style="float:right;"><a href="http://wjx.711688.com/client/Forgot.html" target="_blank"><span style="color:#169bcf">忘记密码</span></a></div>

                    	<div style="float:left;margin-top:2px;"><input type="checkbox" id="chkname" style="float:left;"/><label for="chkname" id="lblname" style="float:left; margin-top:-2px;">记住账号</label></div>
                         <div class="sl-error sl-error-display" id="J-errorBox" errortype="2" style="display:none">
                            <span class="sl-error-text"></span>
                        </div>
                    </div>
                     
                    <div class="row" style=" height:60px;border:0px; margin:0px;">                  
                        <input type="submit" id="sbt" value="登 录" class="submit" >                
                    </div>
                                    
                    <div class="row" style="border:0px; margin-top:5px; text-align:right;">
                        <ul>
                            <li style="text-align:right">
                               <a href="reg.html" target="_blank" style=" color:#ef6d0c">新用户注册</a>
                            </li>               
                        </ul>
                    </div>
                </div>
                </form>
            </div>            
           </div>
        </div>
    </div>
	<div class="footer login">
    	<ul>
        	<li>
            	<a href="http://www.sznet110.gov.cn/netalarm/index.jsp" target="_blank">
                	<img src="http://www.711688.com.cn/Template/Default/Images/member/6.jpg"/></a>
            </li>
            <li>
            	<a href="http://www.sznet110.gov.cn" target="_blank">
                	<img src="http://www.711688.com.cn/Template/Default/Images/member/7.jpg"/></a>		     
            </li>
            <li>
            	<a href="http://net.china.com.cn/index.htm" target="_blank"><img src="http://www.711688.com.cn/Template/Default/Images/member/8.jpg"/></a>
            </li>
            <li>
            	<a href="http://www.wenming.cn" target="_blank">
                <img src="http://www.711688.com.cn/Template/Default/Images/member/9.jpg"/></a>
            </li>
        </ul>
        <div class="clear"></div>
        <div class="copyright">
        	EC Trust China 中国电子商务诚信单位 企动深圳分公司 Copyright © 2006-2015 粤ICP备11018527号-1
        </div>
    </div>
<script>

    $(document).ready(function () {
        $("#sbt").click("click", function () {
            
            if (!IsCookie()) return false;
            Echo('');
            var username = $("#UserName").val();
            var pwd = $("#Password").val();
            var utype = 2;
            if (username == null || username == "") {
                Echo("请输入用户名");
                return;
            }
            if (pwd == null || pwd == "") {
                Echo("请输入密码");
                return;
            }
            submits(username, pwd);
        });
    });
        function IsCookie() {
            var isSupport = false;
            if (typeof (navigator.cookieEnabled) != 'undefined')
                isSupport = navigator.cookieEnabled;
            else {
                document.cookie = 'test';
                isSupport = document.cookie == 'test';
                document.cookie = '';
            }
            if (!isSupport) {
                alert('您的浏览器禁用了Cookie,请开启Cookie后再登录！');
            }
            return isSupport;
        }

        function submits(name, pwd) {
            var param = { "login_type": 1, "name": name, "pwd": pwd };
            Echo('正在登陆中请稍候...');
            $("#sbt").attr('disabled', '');
            $.post("/client/ajax/user.ashx?login", param, function (data) {
                $("#sbt").removeAttr('disabled');
                if (data.code == 0) {
                    Echo('登录成功，正在加载页面...');
                    GoPage(1, data.item.id, data.item.token, data.item.parent_id);
                }
                else
                    Echo(data.msg)
            },
            "json");
        }

        function GoPage(logintype, userid, token, parentid) {
            SetCookie("token", token);
            SetCookie("userid", userid);
            SetCookie("logintype", logintype);
            SetCookie("parentid", parentid);
            window.location.href = "/passport";
        }

	function Echo(msg){		
		$("#J-errorBox").html(msg);
		if(msg!=""){
			$("#J-errorBox").css("display","");
			setTimeout("HideEcho()",2500)
		}
	}
	function HideEcho(){
		$("#J-errorBox").css("display","none");
	}
</script>
</body>
</html>
